<?php

namespace App\Libraries\DataBase\Schema;

use Illuminate\Database\Schema\Blueprint;

trait hasStatusAttribute
{
    public function hasStatus(Blueprint $table, $column = 'status', $default = 0, $comment = '有效标志')
    {
        $table->tinyinteger($column)->default($default)->comment($comment);
    }
}
